package com.ysh.mybatis.mapper;

import com.ysh.mybatis.pojo.User;
import org.apache.ibatis.annotations.Delete;

import java.util.List;

/**
 * 袁胜虎 on 2022/9/25 17:27
 */
public interface UserMapper {

    void findById(Long id);

    List<User> findAll();

    @Delete("delete from user where userId = #{id}")
    int deleteById(Long id);
}
